<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	<style type="text/css">
		div{
			/* 行内样式 */
			display: inline;
			background-color: red;
			width: 200px;
			height: 200px;
		}
		span{
			/* 块级 */
			display: block;
			background-color: green;
		}
		
		.cc{
			background-color: blue;
			/* 行内块 */
			display: inline-block;
			width: 50px;
			height: 50px;
		}

	</style>
	</head>
	<body>
		
		<div>我是div2</div>
		<div>我是div2</div>
		<span>我是一个span</span>
		<span>我是一个span</span>
		
		<p class="cc">我是一个段落</p>
		<b class="cc">我是加粗</b>
	</body>
</html>